#ifndef PASCALTRIANGLE_H
#define PASCALTRIANGLE_H

#include <QThread>
#include <QVector>

#include "digit.h"

class PascalTriangle : public QThread
{
public:
    PascalTriangle();
    PascalTriangle(int power);

    QVector< QVector<Digit> >& getTriangle();
    void print();

private:
    void prepareTriangle();

    int power;
    QVector< QVector<Digit> > triangle;
};

#endif // PASCALTRIANGLE_H
